import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify'
import '@/assets/styles/common.scss'
import * as apis from '@/apis'
import config from '@/utils/config'
import filters from '@/utils/filters'

import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
dayjs.extend(relativeTime)

Vue.config.productionTip = false

Vue.prototype.$apis = apis // 因为api比较少，所以全部挂载到原型链，方便调用
Vue.prototype.$dayjs = dayjs
Vue.prototype.$config = config

Vue.use(filters)

new Vue({
  router,
  store,
  vuetify,
  render: h => h(App)
}).$mount('#app')
